<template>
     <a-modal
    :width="840"
    :visible="visible"
    title="设置链接地址"
    @ok="handleOk"
    @cancel="onClose"
    :destroyOnClose="true"
  >
  </a-modal>
</template>
<script>
import {
  defineComponent,
  reactive,
  toRefs,
  createVNode,
  computed,
  watch,
  ref,
  nextTick,
} from "vue";
export default defineComponent({
    props: {
    visible: {
      type: Boolean,
      default: false,
    },
  },
    setup(props,{emit}) {
      const handleOk = ()=>{
        emit('ok')
      } 
      const onClose = ()=>{
        emit('close')
      }
      return {
        handleOk,
        onClose,
      }
    },
})


</script>
<style lang="less" scoped>

</style>